home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.11.gz / 1994.11 / 000099_armbru@juliet.pond.sub.org_Tue Nov 15 15:00:02 1994.msg < prev    next >
Internet Message Format  |  1994-11-30  |  2KB

  1. Received: from subnet.sub.net by cs.umb.edu with SMTP id AA26544
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Wed, 16 Nov 1994 10:55:45 -0500
  3. Received: from flatlin.ka.sub.org by subnet.sub.net with bsmtp id <6544>; Wed, 16 Nov 1994 07:45:33 +0100
  4. Received: by flatlin.ka.sub.org id <m0r7dUx-0000PyC>; 16 Nov 1994 07:05 +0100
  5. Received: by snert.pilhuhn.de id <m0r7dC5-00010ZC> from pilhuhn.de ([193.141.89.1]); Wed, 16 Nov 94 06:45 MET
  6. Received: by pilhuhn.de id <m0r7dA5-0005KyC> ; Wed, 16 Nov 94 06:46 MET
  7. Received: from scalar.pond.sub.org (scalar.pond.sub.org [192.0.2.60]) by juliet.pond.sub.org (8.6.9/8.6.9) with ESMTP id OAA01463 for <tex-k@cs.umb.edu>; Tue, 15 Nov 1994 14:00:11 +0100
  8. Received: from scalar (scalar [192.0.2.60]) by scalar.pond.sub.org (8.6.9/8.6.9) with SMTP id OAA01693 for <tex-k@cs.umb.edu>; Tue, 15 Nov 1994 14:00:06 +0100
  9. Message-Id: <199411151300.OAA01693@scalar.pond.sub.org>
  10. To: tex-k@cs.umb.edu
  11. Subject: xdvik 1.8d calls kpse_bitmap_tolerance() incorrectly in load_font()
  12. Date:     Tue, 15 Nov 1994 14:00:02 +0100
  13. From: Markus Armbruster <armbru@pond.sub.org>
  14.  
  15. Unmodifed xdvik 1.8d on a DECstation 3100 running Ultrix 4.3a with
  16. native cc, XDEFS='-DA4 -DMFMODE=\"deskjet\"'.
  17.  
  18. TeX some trivial document, eg
  19.  
  20. \documentstyle{article}
  21. \begin{document}
  22. The quick brown fox jumps over the lazy dog.
  23. \end{document}
  24.  
  25. Preview with xdvi
  26.  
  27. $ xdvi test
  28. xdvi: Can't find font cmr10 at 300 dpi; using 300 dpi instead.
  29.  
  30. The display is ok, but the diagnostic is nonsensical.
  31.  
  32.  
  33. Reason: As cc does not define __STDC__, xdvi does not use prototypes.
  34. The function load_font() in dvi_init.c calls kpse_bitmap_tolerance()
  35. with an int and a double argument, but it expects two doubles.
  36.  
  37. Trivial patch appended.
  38.  
  39. Markus
  40.  
  41.  
  42. --- dvi_init.c~ Tue Oct 18 20:04:49 1994
  43. +++ dvi_init.c  Tue Nov 15 12:30:17 1994
  44. @@ -201,7 +201,7 @@
  45.             fontp->fontname = font_found;
  46.             hushcs = True;
  47.         }
  48. -       else if (!kpse_bitmap_tolerance (size_found, fsize))
  49. +       else if (!kpse_bitmap_tolerance ((double)size_found, fsize))
  50.             Fprintf(stderr,
  51.                 "xdvi: Can't find font %s at %d dpi; using %d dpi instead.\n",
  52.                 fontp->fontname, dpi, size_found);